package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

import java.util.List;

/**
 * Created by Czl on 2015/8/4.
 */
@SuppressWarnings("serial")
public class ClazzCourse extends Model<ClazzCourse> {

    public static final ClazzCourse dao = new ClazzCourse();

    /**
     * 分页查询班级课程
     * @param pageNumber
     * @param pageSize
     * @param classId
     * @return
     */
    public Page<ClazzCourse> findClazzCoursePage(int pageNumber,int pageSize,Long classId){
        return dao.paginate(pageNumber,pageSize,"select t.* "," from t_clazz_course t where t.class_id = ?",classId);
    }
}
